package com.text.service.impl;



import com.text.mapper.Mapper;
import com.text.service.Service;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

//bean
@Component
//实现接口
public class ServiceImpl implements Service {
    //    数据源
    @Resource
    Mapper mapper;


    public List<String> findByName(String sex) {
        return mapper.findByName("%");
    }


}
